<div class="header">
	<back-Btn></back-Btn>
	付款单
</div>
<div class="container finance">
	<div class="list f_sk">
		<div class="list-item icon_more required">
			<div class="item-label">付款方式</div>
			<label class="flow-content">
				<select ng-model="param.method" ng-options="item.value as item.key for item in payWayList">
					<option value="">请选择</option>
				</select>
			</label>
		</div>
		<div class="list-item no-border">
			<div class="item-label">款项来源人</div>
			<div class="flow-content">
				<input type="text" ng-model="param.moneyRes" />
			</div>
		</div>
		<div class="list-item no-border">
			<div class="item-label">公司收款账户</div>
			<div class="flow-content">
				<input type="text" ng-model="param.receiptName" />
			</div>
		</div>
		<div class="list-item no-border">
			<div class="item-label">本次收款金额</div>
			<div class="flow-content">
				<input type="text" ng-model="param.income" tel-directive />
			</div>
		</div>
		<div rela-module taskid="process_id" param="param" rel="FK_MODULE"></div>
		<div class="list table-list">
			<div class="info-title">收款人信息
				<span class="c-blue fr" ng-click="showCertificate()">添加</span>
			</div>
			<div class="table-item">
				<div class="list-item icon_more required">
					<div class="item-label">付款类型</div>
					<label class="flow-content">
						<select ng-model="param.type" ng-options="item.value as item.key for item in payTypeList">
							<option value="">请选择</option>
						</select>
					</label>
				</div>
				<div class="list-item required">
					<div class="item-label">付款金额</div>
					<div class="flow-content">
						<input type="text" ng-model="param.amount" placeHolder="必填" tel-directive />
					</div>
				</div>
				<div class="list-item required">
					<div class="item-label">付款事由</div>
					<div class="flow-content">
						<input type="text" placeHolder="必填" ng-model="param.payReason" />
					</div>
				</div>
				<div class="list-item required icon_more">
					<div class="item-label">收款人</div>
					<div class="flow-content">
						<input type="text" placeHolder="必填" ng-model="param.acceptCompany" />
						<p class="project_name" ng-click="showSearchPicker()"></p>
					</div>
				</div>
				<div class="list-item required">
					<div class="item-label">收款账号</div>
					<div class="flow-content">
						<input type="text" placeHolder="必填" ng-model="param.acceptAccount" />
					</div>
				</div>
				<div class="list-item required">
					<div class="item-label">收款人开户行</div>
					<div class="flow-content">
						<input type="text" ng-model="param.acceptBank" />
					</div>
				</div>
			</div>
			<div class="table-item" ng-repeat="item in param.paymentList">
				<div class="content" ng-class="{cur:$index==index}" ng-click="resetlist()" ng-swipe-left="swipe($index)"
					ng-swipe-right="swipe(-1)">
					<div class="list-item">
						<div class="item-label">付款类型</div>
						<div class="flow-content">{{item.type}}</div>
					</div>
					<div class="list-item">
						<div class="item-label">付款金额</div>
						<div class="flow-content">{{item.amount | NBFmt }}</div>
					</div>
					<div class="list-item">
						<div class="item-label">付款事由</div>
						<div class="flow-content">{{item.payReason}}</div>
					</div>
					<div class="list-item">
						<div class="item-label">收款人</div>
						<div class="flow-content">{{item.acceptCompany}}</div>
					</div>
					<div class="list-item">
						<div class="item-label">收款账号</div>
						<div class="flow-content">{{item.acceptAccount}}</div>
					</div>
					<div class="list-item">
						<div class="item-label">收款人开户行</div>
						<div class="flow-content">{{item.acceptBank}}</div>
					</div>
				</div>
				<div class="delete_icon icon_del" ng-click="deletedItem($index)"></div>
			</div>
		</div>
		<div class="list-item list-item-textarea">
			<div class="item-label">备注</div>
			<div class="flow-content">
				<textarea cols="30" rows="10" placeHolder="必填" ng-model="param.remark"></textarea>
			</div>
		</div>
		<!-- 自定义字段 -->
		<div user-defined param="param" field-map="param.fieldMap" validation="validation" uid="param.uid"
			processid="param.processInstanceId"></div>
		<!-- 附件 -->
		<div class="file-upload" file-upload file-data="param.attachment">
		</div>
		<!-- 审查日志 -->
		<div log-list status="processStatus" taskid="process_id"></div>
	</div>
</div>
<!-- 删除流程 -->
<div delete-flow uid="param.uid" id="{{param.processInstanceId}}" submit="submit" validate="validate"></div>
<!-- 搜索 -->
<div search-input show-search-input="showSearchInput" apiurl="apiurl" handle-search="handleSearch" param="searchparam"
	title="searchtitle"></div>
<!-- 选择办证明细子项目 -->
<div class="list tablestyle pickceritem" ng-show="showCerPicker">
	<div class="list-item">
		<div class="grid list-content required">
			<div class="col-1-4">付款类型</div>
			<div class="col-3-4">
				<select ng-model="picker.type" ng-options="item.value as item.key for item in payTypeList">
					<option value="">请选择</option>
				</select>
			</div>
		</div>
		<div class="grid list-content required">
			<div class="col-1-4">付款金额</div>
			<div class="col-3-4">
				<input type="text" ng-model="picker.amount" tel-directive />
			</div>
		</div>
		<div class="grid list-content required">
			<div class="col-1-4">付款事由</div>
			<div class="col-3-4">
				<input type="text" ng-model="picker.payReason" />
			</div>
		</div>
		<div class="grid list-content required">
			<div class="col-1-4">收款人</div>
			<div class="col-3-4">
				<input type="text" ng-model="picker.acceptCompany" />
			</div>
		</div>
		<div class="grid list-content required">
			<div class="col-1-4">收款账号</div>
			<div class="col-3-4">
				<input type="text" ng-model="picker.acceptAccount" />
			</div>
		</div>
		<div class="grid list-content required">
			<div class="col-1-4">收款人开户行</div>
			<div class="col-3-4">
				<input type="text" ng-model="picker.acceptBank" />
			</div>
		</div>
	</div>
	<div class="pickceritem-btn tc flex">
		<div class="cancel" ng-click="cacelCertificate()">取消</div>
		<div class="confirm" ng-click="addCertificate()">确定</div>
	</div>
</div>